package com.example.pay_service.service.impl;

import com.example.pay_service.Dao.ShopcartDao;
import com.example.pay_service.service.ShopcartService;
import com.example.pay_service.vo.Address;
import com.example.pay_service.vo.Commodity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @title: ShopcartServiceimpl
 * @projectName mall
 * @description: TODO
 * @author TLJ
 * @date 2021/12/1411:26
 */

@Service
public class ShopcartServiceimpl implements ShopcartService {
    @Autowired
    ShopcartDao dao;

    @Override
    public Commodity show(int id) {
        return dao.show(id);
    }

    @Override
    public List<Address> showaddress(String user_id) {
        return dao.showaddress(user_id);
    }
}
